package com.lpf.interpreter;

// 客户端代码
public class InterpreterPatternDemo {
    public static void main(String[] args) {
        String input = "3 + 4 - 2";
        Expression expression = ExpressionParser.parse(input);

        System.out.println(input + " = " + expression.interpret());
    }
}